﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Dala.Utilities;

namespace Dala.Samples.Pdf_Examples
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            String htmlBlock="<div class='highcharts-container' id='highcharts-3' style='position: relative; overflow: hidden; width: 300px; height: 200px; text-align: left; line-height: normal; z-index: 0; font-family: &quot;Lucida Grande&quot;,&quot;Lucida Sans Unicode&quot;,Verdana,Arial,Helvetica,sans-serif; font-size: 12px; left: 0.5px; top: 0px;'><svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='300' height='200'><defs><clipPath id='highcharts-4'><rect rx='0' ry='0' fill='none' x='0' y='0' width='9999' height='200' stroke-width='0'/></clipPath><clipPath id='highcharts-5'><rect fill='none' x='0' y='0' width='280' height='175'/></clipPath></defs><rect rx='5' ry='5' fill='#FFFFFF' x='0' y='0' width='300' height='200' stroke-width='0'/><g class='highcharts-series-group' zIndex='3'/><g class='highcharts-shadow' zIndex='4' transform='translate(10,10)'><path fill='none' d='M 139.98217859467667 -8.749998185128618 A 87.5 87.5 0 1 1 116.47530472881876 163.02834070743245 L 140 78.75 A 0 0 0 1 0 140 78.75 Z' stroke='black' stroke-width='5' stroke-linejoin='round' isShadow='true' stroke-opacity='0.049999999999999996' transform='translate(1, 1)'/><path fill='none' d='M 139.98217859467667 -8.749998185128618 A 87.5 87.5 0 1 1 116.47530472881876 163.02834070743245 L 140 78.75 A 0 0 0 1 0 140 78.75 Z' stroke='black' stroke-width='3' stroke-linejoin='round' isShadow='true' stroke-opacity='0.09999999999999999' transform='translate(1, 1)'/><path fill='none' d='M 139.98217859467667 -8.749998185128618 A 87.5 87.5 0 1 1 116.47530472881876 163.02834070743245 L 140 78.75 A 0 0 0 1 0 140 78.75 Z' stroke='black' stroke-width='1' stroke-linejoin='round' isShadow='true' stroke-opacity='0.15' transform='translate(1, 1)'/></g><g class='highcharts-shadow' zIndex='4' transform='translate(10,10)'><path fill='none' d='M 116.47522045048981 163.02831718269502 A 87.5 87.5 0 0 1 119.42292175630868 -6.2960689917706105 L 140 78.75 A 0 0 0 0 0 140 78.75 Z' stroke='black' stroke-width='5' stroke-linejoin='round' isShadow='true' stroke-opacity='0.049999999999999996' transform='translate(1, 1)'/><path fill='none' d='M 116.47522045048981 163.02831718269502 A 87.5 87.5 0 0 1 119.42292175630868 -6.2960689917706105 L 140 78.75 A 0 0 0 0 0 140 78.75 Z' stroke='black' stroke-width='3' stroke-linejoin='round' isShadow='true' stroke-opacity='0.09999999999999999' transform='translate(1, 1)'/><path fill='none' d='M 116.47522045048981 163.02831718269502 A 87.5 87.5 0 0 1 119.42292175630868 -6.2960689917706105 L 140 78.75 A 0 0 0 0 0 140 78.75 Z' stroke='black' stroke-width='1' stroke-linejoin='round' isShadow='true' stroke-opacity='0.15' transform='translate(1, 1)'/></g><g class='highcharts-shadow' zIndex='4' transform='translate(10,10)'><path fill='none' d='M 119.42300680238797 -6.296089568806323 A 87.5 87.5 0 0 1 123.52726592250986 -7.185435252358474 L 140 78.75 A 0 0 0 0 0 140 78.75 Z' stroke='black' stroke-width='5' stroke-linejoin='round' isShadow='true' stroke-opacity='0.049999999999999996' transform='translate(1, 1)'/><path fill='none' d='M 119.42300680238797 -6.296089568806323 A 87.5 87.5 0 0 1 123.52726592250986 -7.185435252358474 L 140 78.75 A 0 0 0 0 0 140 78.75 Z' stroke='black' stroke-width='3' stroke-linejoin='round' isShadow='true' stroke-opacity='0.09999999999999999' transform='translate(1, 1)'/><path fill='none' d='M 119.42300680238797 -6.296089568806323 A 87.5 87.5 0 0 1 123.52726592250986 -7.185435252358474 L 140 78.75 A 0 0 0 0 0 140 78.75 Z' stroke='black' stroke-width='1' stroke-linejoin='round' isShadow='true' stroke-opacity='0.15' transform='translate(1, 1)'/></g><g class='highcharts-shadow' zIndex='4' transform='translate(10,10)'><path fill='none' d='M 123.52735185795336 -7.185451725049589 A 87.5 87.5 0 0 1 139.96587671720454 -8.749993346294431 L 140 78.75 A 0 0 0 0 0 140 78.75 Z' stroke='black' stroke-width='5' stroke-linejoin='round' isShadow='true' stroke-opacity='0.049999999999999996' transform='translate(1, 1)'/><path fill='none' d='M 123.52735185795336 -7.185451725049589 A 87.5 87.5 0 0 1 139.96587671720454 -8.749993346294431 L 140 78.75 A 0 0 0 0 0 140 78.75 Z' stroke='black' stroke-width='3' stroke-linejoin='round' isShadow='true' stroke-opacity='0.09999999999999999' transform='translate(1, 1)'/><path fill='none' d='M 123.52735185795336 -7.185451725049589 A 87.5 87.5 0 0 1 139.96587671720454 -8.749993346294431 L 140 78.75 A 0 0 0 0 0 140 78.75 Z' stroke='black' stroke-width='1' stroke-linejoin='round' isShadow='true' stroke-opacity='0.15' transform='translate(1, 1)'/></g><g class='highcharts-point' zIndex='5' transform='translate(10,10)'><path fill='#4572A7' d='M 139.98217859467667 -8.749998185128618 A 87.5 87.5 0 1 1 116.47530472881876 163.02834070743245 L 140 78.75 A 0 0 0 1 0 140 78.75 Z' stroke='#FFFFFF' stroke-width='1' stroke-linejoin='round'/><path fill='rgb(192,192,192)' d='M 139.98217859467667 -8.499998185128618 A 87.5 87.5 0 1 1 116.47530472881876 163.27834070743245 L 140 79 A 0 0 0 1 0 140 79 Z' isTracker='1361621795870' fill-opacity='0.000001' visibility='visible' style='cursor:pointer;'/></g><g class='highcharts-point' zIndex='5' transform='translate(10,10)'><path fill='#AA4643' d='M 116.47522045048981 163.02831718269502 A 87.5 87.5 0 0 1 119.42292175630868 -6.2960689917706105 L 140 78.75 A 0 0 0 0 0 140 78.75 Z' stroke='#FFFFFF' stroke-width='1' stroke-linejoin='round'/><path fill='rgb(192,192,192)' d='M 116.47522045048981 163.27831718269502 A 87.5 87.5 0 0 1 119.42292175630868 -6.0460689917706105 L 140 79 A 0 0 0 0 0 140 79 Z' isTracker='1361621795870' fill-opacity='0.000001' visibility='visible' style='cursor:pointer;'/></g><g class='highcharts-point' zIndex='5' transform='translate(10,10)'><path fill='#89A54E' d='M 119.42300680238797 -6.296089568806323 A 87.5 87.5 0 0 1 123.52726592250986 -7.185435252358474 L 140 78.75 A 0 0 0 0 0 140 78.75 Z' stroke='#FFFFFF' stroke-width='1' stroke-linejoin='round'/><path fill='rgb(192,192,192)' d='M 119.42300680238797 -6.046089568806323 A 87.5 87.5 0 0 1 123.52726592250986 -6.935435252358474 L 140 79 A 0 0 0 0 0 140 79 Z' isTracker='1361621795870' fill-opacity='0.000001' visibility='visible' style='cursor:pointer;'/></g><g class='highcharts-point' zIndex='5' transform='translate(10,10)'><path fill='#80699B' d='M 123.52735185795336 -7.185451725049589 A 87.5 87.5 0 0 1 139.96587671720454 -8.749993346294431 L 140 78.75 A 0 0 0 0 0 140 78.75 Z' stroke='#FFFFFF' stroke-width='1' stroke-linejoin='round'/><path fill='rgb(192,192,192)' d='M 123.52735185795336 -6.935451725049589 A 87.5 87.5 0 0 1 139.96587671720454 -8.499993346294431 L 140 79 A 0 0 0 0 0 140 79 Z' isTracker='1361621795870' fill-opacity='0.000001' visibility='visible' style='cursor:pointer;'/></g><g class='highcharts-data-labels' visibility='visible' zIndex='6' transform='translate(10,10)'/><g class='highcharts-legend' zIndex='7'><g zIndex='1' clip-path='url(#highcharts-4)'><g/></g></g><g class='highcharts-tooltip' zIndex='8' style='padding:0;white-space:nowrap;' visibility='hidden' transform='translate(106,41.71875)'><rect rx='5' ry='5' fill='none' x='0' y='0' width='92' height='70' stroke-width='5' fill-opacity='0.85' isShadow='true' stroke='black' stroke-opacity='0.049999999999999996' transform='translate(1, 1)'/><rect rx='5' ry='5' fill='none' x='0' y='0' width='92' height='70' stroke-width='3' fill-opacity='0.85' isShadow='true' stroke='black' stroke-opacity='0.09999999999999999' transform='translate(1, 1)'/><rect rx='5' ry='5' fill='none' x='0' y='0' width='92' height='70' stroke-width='1' fill-opacity='0.85' isShadow='true' stroke='black' stroke-opacity='0.15' transform='translate(1, 1)'/><rect rx='5' ry='5' fill='rgb(255,255,255)' x='0' y='0' width='92' height='70' stroke-width='2' fill-opacity='0.85' stroke='#4572A7' anchorX='88.93415637860085' anchorY='54.71875'/><text x='5' y='18' style='font-family:&quot;Lucida Grande&quot;, &quot;Lucida Sans Unicode&quot;, Verdana, Arial, Helvetica, sans-serif;font-size:12px;color:#333333;fill:#333333;' zIndex='1'><tspan style='font-weight:bold' x='5'>Web</tspan><tspan dy='20' x='5'> </tspan><tspan style='font-weight:bold' dx='3'>OptIn</tspan><tspan dx='3'>: 8828</tspan><tspan style='font-weight:bold' dy='20' x='5'>Total:</tspan><tspan dx='3'>15633</tspan></text></g><text x='290' y='195' style='font-family:&quot;Lucida Grande&quot;, &quot;Lucida Sans Unicode&quot;, Verdana, Arial, Helvetica, sans-serif;font-size:10px;cursor:pointer;color:#909090;fill:#909090;' text-anchor='end' zIndex='8'/><g class='highcharts-tracker' zIndex='9'/></svg></div>";
            PdfUtility pdfUtility = new PdfUtility();
            pdfUtility.GetPdf(htmlBlock, "Sample");
        }
    }
}